package com.infrastructure.net;

/**
 * Created by zyt on 16/6/14 11:38 .
 * Email : syy19930112@aliyun.com
 * Description:
 * <p/>
 * 封装MobileAPI接口.<br>
 * 将MobileAPI定义在XML文件中,每个MobileAPI接口都对应一个{@link URLData}对象.
 */
public class URLData {
    /**
     * MobileAPI接口名称
     */
    private String key;

    /**
     * 描述缓存时间.如果expires为0默认不缓存.
     */
    private long expires;

    /**
     * 网络请求类型
     */
    private String netType;

    /**
     * 具体API接口地址
     */
    private String url;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public long getExpires() {
        return expires;
    }

    public void setExpires(long expires) {
        this.expires = expires;
    }

    public String getNetType() {
        return netType;
    }

    public void setNetType(String netType) {
        this.netType = netType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "URLData{" +
                "key='" + key + '\'' +
                ", expires=" + expires +
                ", netType='" + netType + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
